\renewcommand{\vec}[1]{\ensuremath{{\bm #1}}}
\newcommand{\fig}[1]{fig.~\ref{#1}}
\newcommand{\eq}[1]{eq.~\ref{#1}}
\newcommand{\unit}[1]{\ensuremath{\,\mbox{#1}}}
\newcommand{\sign}{\ensuremath{\operatorname{sgn}}}
\newcommand{\ibi}{IBI\xspace}
\newcommand{\imc}{IMC\xspace}
\newcommand{\fm}{FM\xspace}
\newcommand{\xml}{XML\xspace}
\newcommand{\gromacs}{GROMACS\xspace}
\newcommand{\espresso}{ESPResSo\xspace}
\newcommand{\spce}{SPC/E\xspace}
\newcommand{\grad}{\vec{\nabla}}
\newcommand{\ddash}{{-}{-}\xspace}

%formating for a program option, e.g. --trj
\newcommand{\progopt}[1]{\texttt{#1}\xspace}
% formating for intern programs, e.g. csg_boltzmann
\newcommand{\prog}[1]{\hyperref[#1]{\textbf{\StrSubstitute{#1}{_}{\_}}}\xspace}
% formating for external programs, e.g. grompp
\newcommand{\progex}[1]{\hyperlink{progex.#1}{\textbf{#1}\xspace}}

% reference to an xml option in the reference section
\newcommand{\cgref}[1]{cg.#1}

%we need \StrSubstitute{#1}{_}{\_} to replace _ \_ in the text of the reference (not in the label it self)

%hyperlink for cgopts
\newcommand{\cgopt}[1]{\hyperlink{\cgref{#1}}{\textit{\StrSubstitute{#1}{_}{\_}}}\xspace}
\newcommand{\interref}[1]{cg.non-bonded.#1}
\newcommand{\interopt}[1]{\hyperlink{\interref{#1}}{\textit{\StrSubstitute{#1}{_}{\_}}}\xspace}
\newcommand{\mapref}[1]{cg_molecule.#1}
\newcommand{\mapopt}[1]{\hyperlink{\mapref{#1}}{\StrSubstitute{#1}{_}{\_}}\xspace}

\newcommand{\sect}[1]{sec.~\ref{#1}}

\newcommand{\votca}{{\sc \color{blue} votca}\xspace}
\newcommand{\votcaweb}{\htmladdnormallink{{\sc \color{blue} www.votca.org}\xspace}{http://www.votca.org}}

\input{hgid}
\input{reference/hgid}

% todo
\newcommand{\todo}{{\marginpar{\sc \color{red} TODO}}\xspace}

% XML listings
\definecolor{darkgreen}{named}{green}
\definecolor{darkblue}{named}{blue}
\definecolor{darkred}{named}{red}
\definecolor{grau}{named}{gray}
\let\Righttorque\relax

\lstset{language=XML}

\lstset{
    language=XML,
    basicstyle=\ttfamily,%\scriptsize\mdseries,
    keywordstyle=,
    identifierstyle=,
    commentstyle=\color{gray},
    stringstyle=\itshape\color{black},
    breaklines=true,
    frame=none,
    showstringspaces=false,
    tabsize=2,
    captionpos=b,
    float=htbp,
    moredelim=*[s][\color{darkblue}]{<}{>},
    morecomment=[s]{<!--}{-->},
}

